import React from 'react'
import {Button} from '@material-ui/core'
import './goback.less'
import { useHistory } from 'react-router'

export default function GoBackButton() {
  const history = useHistory()
  return (
    <div className="go-back">
      <Button variant="contained" color="primary" onClick={()=>history.goBack()}>返回上一页</Button>
    </div>
  )
}
